package com.itheima.课件.otherstream.超级恐怖流;

import java.io.*;

public class 缓冲转码流 {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream("day13_字符流&properties\\a.txt"),"UTF-8"));
        BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(new FileOutputStream("day13_字符流&properties\\b.txt",true),"GBK"));

        String line;
        while ((line = br.readLine()) != null){
            bw.write(line);
            bw.newLine();
            bw.flush();
        }

        bw.close();
        br.close();
    }
}
